package com.sinosoft.tcmcp.system.web.dto;

import java.io.Serializable;

import com.sinosoft.framework.core.api.domain.ResourcePermissionEntity;
import com.sinosoft.framework.core.common.utils.ajax.ObjectUtil;

/**
 * 资源权限数据传输类
 * @author xiaoxiong
 *
 */
public class ResourcePermissionData implements Serializable{

	private static final long serialVersionUID = 1L;
	
	private String id;	//	资源编号
	private String name;	//	资源名称
	private String url;		//	资源url
	private String pid;	//	父资源编号
	private String type;	//	资源类型
	private String description;	//	描述
	private int sort;	//	排序
	private String display;	//	是否显示
	private String icon; //矢量图
	
	public String getId() {
		return id;
	}
	public String getName() {
		return name;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getPid() {
		return pid;
	}
	public String getType() {
		return type;
	}
	public String getDescription() {
		return description;
	}
	public int getSort() {
		return sort;
	}
	public void setId(String id) {
		this.id = id;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setPid(String pid) {
		this.pid = pid;
	}
	public void setType(String type) {
		this.type = type;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public void setSort(int sort) {
		this.sort = sort;
	}
	public String getDisplay() {
		return display;
	}
	public void setDisplay(String display) {
		this.display = display;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	
	/**
	 * 数据转换
	 * 实体类转传输类
	 * @param resourcePermissionEntity	资源权限信息实体
	 */
	public void toResourcePermissionData(ResourcePermissionEntity resourcePermissionEntity) {
		ObjectUtil.oldToNew(this, resourcePermissionEntity, "serialVersionUID");
	}
}
